<template>
  <div>
    <h1>红孩儿</h1>
  </div>
</template>

<script>
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },

  components: {},

  computed: {},

  beforeMount() {},

  mounted() {
    console.log(this.$parent);
    /* 在子组件中可以通过this.$parent获取父组件上的数据 */
  },

  methods: {},

  watch: {},
};
</script>
<style lang='' scoped>
</style>